package jdbc.day2.demo5_静态代理;

public class Manager implements SecretaryI {
    SecretaryI s;

    public Manager() {
    }

    public Manager(SecretaryI s) {
        this.s = s;
    }

    @Override
    public void buyTicket() {
        long begin=System.currentTimeMillis();
        s.buyTicket();
        long end=System.currentTimeMillis();
        System.out.println("共用时："+(end-begin));
    }
}
